package com.shuma.upms.permission.mapper;

import com.shuma.upms.permission.domain.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper {

    @Select("SELECT role_id, role_code, role_name FROM roles WHERE role_code = #{roleCode}")
    Role findByCode(@Param("roleCode") String roleCode);
}